home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol F-12 / (Vol F-12) Jun 02 2012.iso / Screensaver / screensaver_installer.exe / ____swmx / scripts / frame_1 / DoAction_16.as < prev    next >
Text File  |  2004-10-21  |  777b  |  30 lines

  1. _global.ScreenweaverTray = function()
  2. {
  3.    this.init();
  4. };
  5. ScreenweaverTray.prototype.init = function()
  6. {
  7. };
  8. ScreenweaverTray.prototype.enable = function()
  9. {
  10.    swInterface.setEventListener("TrayEvents",this.onTrayEvent);
  11. };
  12. ScreenweaverTray.prototype.disable = function()
  13. {
  14.    swInterface.clearEventListener("TrayEvents");
  15. };
  16. ScreenweaverTray.prototype.setIcon = function(path, hint)
  17. {
  18.    swInterface.pushArg(typeof path ne "string" ? "" : path);
  19.    swInterface.pushArg(typeof hint ne "string" ? "" : hint);
  20.    fscommand("sw_setTrayIcon");
  21. };
  22. ScreenweaverTray.prototype.removeIcon = function()
  23. {
  24.    fscommand("sw_removeTrayIcon");
  25. };
  26. ScreenweaverTray.prototype.onTrayEvent = function()
  27. {
  28.    swEvents.broadcastMessage.apply(swEvents,arguments);
  29. };
  30.